package com.ccb.sc.common.modules.member.entity;

import com.ccb.sc.common.entity.BaseEntity;
import com.ccb.sc.common.modules.member.enums.MemberPointsLogType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * <p>
 * 会员积分记录
 * </p>
 *
 * @author ken
 * @since 2022-07-30
 */
@Getter
@Setter
@TableName("tb_member_points_log")
public class MemberPointsLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableField("member_id")
    private Long memberId;

    /**
     * 变动数量
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 当时余额
     */
    @TableField("balance")
    private BigDecimal balance;

    /**
     * 变动类型
     */
    @TableField("change_type")
    private MemberPointsLogType changeType;

    /**
     * 关联id
     */
    @TableField("associate")
    private String associate;


}
